package com.example.wechat114.controller;

import com.example.wechat114.commons.JsonBean;
import com.example.wechat114.service.MFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("mForm")
public class MFormController {
    @Autowired
    private MFormService mFormService;

    @GetMapping("getList")
    public JsonBean getList(Integer id){
        return mFormService.selectKid(id);
    }

    @GetMapping("getMname")
    public JsonBean getMname(String mname){
        return mFormService.selectMname(mname);
    }

}
